﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:widget="http://www.netvibes.com/ns/">
<head>
	<title>历史上的今天</title>
	<link rel="icon" href="http://www.nlc.gov.cn/css/favicon.ico" type="image/x-icon" />
	<meta name="title" content="历史上的今天" />
	<meta name="author" content="ehaagwlke" />
	<meta name="website" content="http://www.nlc.gov.cn" />
	<meta name="description" content="历史上的今天，数据来自国家图书馆网站" />
	<meta name="version" content="alpha" />
	<meta name="keyword" content="历史上的今天" />
	<meta name="thumbnail" content="http://ehaagwlke.googlepages.com/tih-thumbnail.jpg" />
	<meta name="screenshot" content="http://ehaagwlke.googlepages.com/tih.png" />
	<meta name="debugMode" content="true" />



	<script type="text/javascript">
		//<![CDATA[
			
			var title = '123456789012345678901234567890';
		
			widget.dataInt = function() {
				widget.setBody('<ul class="text_list"></ul>');
				var el = UWA.$element(widget.body.getElementsByTagName('ul')[0]);
				var w = el.getDimensions().width;
				
				if(w < 200 ){
					var titleLen = 11;
				}else{
					var titleLen = 25;
				}
				
				if(title.length > titleLen){ var newTitle = title.substr(0,titleLen - 1)+'...';}else{newTitle = title;}
				
				el.innerHTML = '<li><a href="#" title="'+title+'">'+newTitle+'</a>';
				el.innerHTML = '<li><a href="#" title="'+title+'">'+newTitle+'</a>';
				el.innerHTML = '<li><a href="#" title="'+title+'">'+newTitle+'</a>';
				
				widget.addBody("<br />The width of the Element is "+w);
			}
			
			widget.onLoad = function(){
				widget.dataInt();
			}
			
			widget.onRefresh = function(){
				widget.dataInt();
			}
			
			widget.onResize = function(){
				widget.dataInt();
			}
			
		//]]>
	</script>
</head>
<body>
	
	<div class="content">数据读取中，敬请耐心等待，谢谢！.....</div>
	

</body>
</html>
